//
//  TRAppsViewController.m
//  WeiMiLan
//
//  Created by Mac on 14-9-22.
//  Copyright (c) 2014年 Mac. All rights reserved.
//

#import "TRAppsViewController.h"

@interface TRAppsViewController ()

@end

@implementation TRAppsViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self initNavigation];
    NSURL * url=[NSURL URLWithString:down_URL];
    
    NSURLRequest *r=[NSURLRequest requestWithURL:url];
    
    [self.webView loadRequest:r];
}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    


}
- (void)initNavigation
{
    [self.navigationController setNavigationBarHidden:YES animated:YES];
   // self.view.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"main_bg"]];
    self.view.backgroundColor=[UIColor whiteColor];
    self.weChatNavigationBar=[[WeChatNavigationBar alloc] init];
    [self.view addSubview:self.weChatNavigationBar];
    self.weChatNavigationBar.titleLabel.text=@"给我们评价";
    [self.weChatNavigationBar.rightButton setImage:nil forState:0];
    [self.weChatNavigationBar .leftButton addTarget:self action:@selector(exit)  forControlEvents:UIControlEventTouchUpInside];
    
    
}

-(void)exit
{
    
    [self.navigationController popViewControllerAnimated:YES];
}
@end
